#!/bin/bash -e

rm -rf ./dl-assets/
mkdir -p ./dl-assets/
pushd dl-assets/
wget https://github.com/aliyun/aliyun-cli/releases/download/v3.0.161/aliyun-cli-linux-3.0.161-amd64.tgz
tar xvf aliyun-cli-linux-3.0.161-amd64.tgz
rm -vf aliyun-cli-linux-3.0.161-amd64.tgz
popd
dpkg-buildpackage -us -uc
lintian ../aliyun-cli_3.0.161~spark1_amd64.deb
